+++++++++++++++++++++++@echo off
echo Testing TableGen files...

echo.
echo Testing simple.td...
llvm-tblgen simple.td
if %errorlevel% neq 0 (
    echo ERROR: simple.td failed
    exit /b 1
)
echo simple.td: OK

echo.
echo Testing complete_example.td...
llvm-tblgen complete_example.td
if %errorlevel% neq 0 (
    echo ERROR: complete_example.td failed
    exit /b 1
)
echo complete_example.td: OK

echo.
echo Testing codegen_example.td...
llvm-tblgen codegen_example.td
if %errorlevel% neq 0 (
    echo ERROR: codegen_example.td failed
    exit /b 1
)
echo codegen_example.td: OK

echo.
echo All TableGen files compiled successfully!
